<include file="Public:header" />
<div class="page-member subpage">
    <div class="form-header">
        <div>
            <div class="line1">
                <div class="fl"><h3>站点信息 / 新增</h3></div>
                <div class="fr hidden">
                    <form class="search-form" method="post" action="">
                        <input name="field" value="{$filter.field}" type="text" />
                        <input name="value" value="{$filter.value}" type="text" />
                        <input name="page" value="{$filter.page}" type="hidden" />
                        <input name="order_field" value="{$filter.order_field}" type="hidden" />
                        <input name="order_sort" value="{$filter.order_sort}" type="hidden" />
                        <button class="btn-normal" type="submit">查 询</button>
                    </form>
                </div>
            </div>
            <div class="line2">
                <div class="fl form-btn-group">
                    <in name="$x|default='01-01-10'" value="$rightsCode">
                        <button onclick="submitForm();" class="btn-save btn-highlight">保 存</button>
                        <else />
                        <button class="btn-create btn-disable" disabled="disabled">保 存</button>
                    </in>
                    <span>或</span>
                    <a class="linkBtn btn-abort" href="/admin/site/index">放弃</a>
                </div>
            </div>
        </div>
    </div>
    <div class="form-box2">
        <div>
            <form id="siteForm" method="post" action="">
                <input type="hidden" name="id" id="id" value="{$site.id}" />
                <table class="form">
                    <tr>
                        <th width="15%">站点名称<span class="hint">*</span></th>
                        <td width="35%"><input name="name" type="text" value="{$site.name}" /> </td>
                        <th width="15%">类型<span class="hint">*</span></th>
                        <td>
                            <select name="type">
                                <volist name="type" id="vo">
                                    <if condition="$site[type] eq $vo[id]">
                                        <option selected="selected" value="{$vo.id}">{$vo.name}</option>
                                        <else />
                                        <option value="{$vo.id}">{$vo.name}</option>
                                    </if>
                                </volist>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th>备注</th>
                        <td><input name="remarks" type="text" value="{$site.remarks}" /></td>
                        <th></th>
                        <td></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>
<script src="__JS__/site.js?v=0.3" type="text/javascript" ></script>
<include file="Public:footer" />
